<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="c"       uri="http://java.sun.com/jsp/jstl/core" %>
<br/>
当前模块:&nbsp;${fwSource.name }
<form:form modelAttribute="fwSrcAction" name="ec">
<form:errors path="*" cssClass="errors"></form:errors>
<table width="100%" cellspacing="0" cellpadding="0" border="1">
<tr>
	<td  width="8%"><input type="checkbox" name="id_selector" value="1" onclick="checkAll(this)"><spring:message code="information.choose"/></td>
    <td width="30%" >
    <spring:message code="actionForm.actionName.displayname"/> </td>
    <td>
    <spring:message code="actionForm.actionMethod.displayname"/>
    </td>
    <td>
    <spring:message code="actionForm.actionPath.displayname"/>
    </td>
     <td>
    <spring:message code="actionForm.logLevel.displayname"/>
    </td>
     <td>
    <spring:message code="actionForm.actionOrder.displayname"/>
    </td>
</tr>
<c:forEach var="operation" items="${pageBean.dataList}">
  	<tr>
  		<td>
  		<input type="checkbox" value="${operation.id}" name="id" >
  		</td>
	    <td>
	    	${operation.name}
	    </td>
	    <td>
	    	${operation.methodName}
	   </td>
	   <td>
	    	${operation.actionMethods}
	   </td>
	   <td>
	    	${operation.logLevel}
	   </td>
	    <td>
	    	${operation.actionOrder}
	   </td>
  	</tr>
  </c:forEach>
</table>
</form:form>
<script language="javascript">
<!--
function editData(actionName){
	var checkName = getCheckName();
	if(checkName==''){
		return ;
	}
	var checkValue = getCheckValue(checkName);
	if(!checkValue){
		window.location.href = actionName+(actionName.indexOf("?")>0?"&":"?")+"actionMethod=add&sourceId="+${sourceId};
	}else{
		window.location.href = actionName+(actionName.indexOf("?")>0?"&":"?")+"actionMethod=edit&queryId="+checkValue+"&sourceId="+${sourceId};
	}
	
}
function deleteData(actionName){
	var checkName = getCheckName();
	if(checkName==''){
		return ;
	}
	var checkValue = getCheckValue(checkName);
	if(!checkValue){
		alert('请选择要删除的数据!');
		return;
	}
	if(confirm('确定要删除这些数据吗？')){
		document.forms.ec.action = actionName+(actionName.indexOf("?")>0?"&":"?")+"actionMethod=delete&sourceId="+${sourceId};
		document.forms.ec.submit();
	}
}
//-->
</script>